/*
 * @Descripttion:
 * @version:
 * @Author: 十三
 * @Date: 2022-11-30 18:15:30
 * @LastEditors: 十三
 * @LastEditTime: 2022-12-23 16:27:52
 */
import { ROUTER_PREFIX } from '@/constant';

export default [
  {
    path: '/',
    redirect: `${ROUTER_PREFIX}/home`,
    name: 'Home',
    component: () => import('@/layout/container/index.vue'),
    children: [
      {
        path: `${ROUTER_PREFIX}/home`,
        component: () => import('@/modules/home/Home.vue'),
        meta: {
          title: '首页',
          isAuth: false
        }
      },
      {
        path: `${ROUTER_PREFIX}/article/:uid`,
        name: 'ArticleDetail',
        component: () => import('@/modules/article/detail/ArticleDetail.vue'),
        meta: {
          title: '文章详情',
          isAuth: false
        }
      }
    ]
  },
  {
    path: `${ROUTER_PREFIX}/wallpaper`,
    name: 'Wallpaper',
    component: () => import('@/modules/wallpaper/index.vue'),
    meta: {
      title: '壁纸',
      cache: true
    }
  },
  {
    path: `${ROUTER_PREFIX}/profile`,
    name: 'Profile',
    component: () => import('@/modules/profile/Profile.vue'),
    meta: {
      title: '个人中心',
      cache: true
    }
  }
];
